Use SetSystemUIMode instead of hiding and showing the menubar.
authorRichard Hult <richard@imendio.com>
Mon, 19 May 2008 20:56:51 +0000 (20:56 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 19 May 2008 20:56:51 +0000 (20:56 +0000)
2008-05-19  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkwindow-quartz.c: (gdk_window_hide),
(gdk_window_fullscreen), (gdk_window_unfullscreen): Use
SetSystemUIMode instead of hiding and showing the menubar.

svn path=/trunk/; revision=20114

ChangeLog
gdk/quartz/gdkwindow-quartz.c

index 8b08bb040f4eed66e1b607ecb1be7e7146707d2d..8e8414ce3e11871e9d4710614c695000d378429d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-19  Richard Hult  <richard@imendio.com>
+
+       * gdk/quartz/gdkwindow-quartz.c: (gdk_window_hide),
+       (gdk_window_fullscreen), (gdk_window_unfullscreen): Use
+       SetSystemUIMode instead of hiding and showing the menubar.
+
 2008-05-19  Federico Mena Quintero  <federico@novell.com>
 
        http://bugzilla.gnome.org/show_bug.cgi?id=322298 - Save dialog
index ae7a191b2d02b3aa0770647af0d3167d14e79fa3..bd3c61d963c62609c784c4f6b724b544c4457ec1 100644 (file)
@@ -1250,7 +1250,7 @@ gdk_window_hide (GdkWindow *window)
 
   /* Make sure we're not stuck in fullscreen mode. */
   if (get_fullscreen_geometry (window))
-    ShowMenuBar ();
+    SetSystemUIMode (kUIModeNormal, 0);
 
   if (GDK_WINDOW_DESTROYED (window))
     return;
@@ -2974,7 +2974,7 @@ gdk_window_fullscreen (GdkWindow *window)
                                    frame.size.width, frame.size.height);
     }
 
-  HideMenuBar ();
+  SetSystemUIMode (kUIModeAllHidden, kUIOptionAutoShowMenuBar);
 
   gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FULLSCREEN);
 }
@@ -2990,7 +2990,7 @@ gdk_window_unfullscreen (GdkWindow *window)
   geometry = get_fullscreen_geometry (window);
   if (geometry)
     {
-      ShowMenuBar ();
+      SetSystemUIMode (kUIModeNormal, 0);
 
       move_resize_window_internal (window,
                                    geometry->x,